GetMovieBox
TheGetMovieBox
function returns a movie's boundary rectangle, which is a rectangle that encompasses all of the movie's enabled tracks. The movie box is in the coordinate system of the movie's graphics world and defines the movie's boundaries over the entire duration of the movie. The movie's boundary rectangle defines the size and shape of the movie before the Movie Toolbox applies the display clipping region.
pascal void GetMovieBox (Movie theMovie, Rect *boxRect);
theMovie
- Specifies the movie for this operation. Your application obtains this movie identifier from such functions as
NewMovie
,NewMovieFromFile
, andNewMovieFromHandle
(described on page 2-80, page 2-76, and page 2-78, respectively).boxRect
- Contains a pointer to a rectangle. The
GetMovieBox
function returns the coordinates of the movie's boundary rectangle into the structure referred to by this parameter.ERROR CODES
Memory Manager errors
invalidMovie -2010 This movie is corrupted or invalid SEE ALSO
You can use theSetMovieBox
function, which is described in the previous section, to change the coordinates of a movie's boundary rectangle.